<%= flipper(@pager) %>
<table>
  <thead>
    <tr>
      <td>Login</td>
      <td>First Name</td>
      <td>Last Name</td>
      <td>Actions</td>
    </tr>
  </thead>
  <tbody>
  <%
    i = 0
    @users.each do |user|
      bg = row_class(i)
      i += 1
  %>    
      <tr class="<%=bg%>">
        <td><%=h(user[:login])%></td>
        <td><%=h(user[:first_name])%></td>
        <td><%=h(user[:last_name])%></td>
        <td>
          <%=links([
              link_to("Update", ca("/manage/users","update_#{LockDown.role_name(role)}", user.id)),
              link_to("Show", ca("/manage/users","show_#{LockDown.role_name(role)}",user.id)),
              link_to("Delete", ca("/manage/users","delete_#{LockDown.role_name(role)}",user.id), :confirm => "Are you sure?")])%>
        </td>
      </tr>
  <%
    end 
  %>
  </tbody>
</table>
<div id="actions">
  <%= link_to("Create " + LockDown.role_name(role),ca("/manage/users","create_#{LockDown.role_name(role)}")) %>
</div>

